package com.beiding.service.search;

import com.beiding.pojo.room.Room;

import java.security.Principal;
import java.util.List;

/**
 * 房源查找服务
 */
public interface RoomSearchService {

    //高亮查询
    List<Room> search(Principal principal, String q, int page, int pageSize);

    //boolean exist(Principal principal, String id);

    List<Room> myRooms(Principal principal, int page, int pageSize);

    Room findById(String id);

}
